#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();void paintEvent(QPaintEvent *);
    void mouseReleaseEvent(QMouseEvent *);
private:
    Ui::MainWindow *ui;
    int a[15][15];
       int isWin(int, int);
       int f1(int, int);
       int f2(int, int);
       int f3(int, int);
       int f4(int, int);
       int player;
};
#endif // MAINWINDOW_H
